package edu.suda.entity;

import lombok.*;

import java.util.Set;

/*****************
 * @author  苏大
 */
@Data
@NoArgsConstructor   //Company()
@RequiredArgsConstructor
public class Company {

    @NonNull
    private Integer id;
    @NonNull
    private String name;
    private String address;

    /** 一个商家对应购物车中的多个商品条目 */
    @ToString.Exclude
    @EqualsAndHashCode.Exclude
    private Set<Product> products;
}
